import { defineStore } from 'pinia'
import { useToggle } from '@vueuse/core'

export const useLoadingStore = defineStore('loading', () => {
  const [loading, toggleLoading] = useToggle()

  return {
    loading,
    toggleLoading,
  }
})
